//
//  ZZCTwoDimensionalController.m
//  ZZC-Finance
//
//  Created by mac on 2017/5/24.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "ZZCTwoDimensionalController.h"
#import "ZZCLoginController.h"

@interface ZZCTwoDimensionalController ()
//未登录的view
@property (weak, nonatomic) IBOutlet UIView *noLoginView;
//二维码图片
@property (weak, nonatomic) IBOutlet UIImageView *imgView;
@end

@implementation ZZCTwoDimensionalController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"我的二维码";
    self.view.backgroundColor = ZZCBGColor;
    NSString *str = [NSString stringWithFormat:@"%@%@",ZZCURL_API,self.qrcode];
    NSURL *url = [NSURL URLWithString:str];
    [self.imgView sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"展位图"]];
//    if (self.isLogin) {
        self.noLoginView.hidden = YES;
//    }else {
//        self.noLoginView.hidden  = NO;
//    }
}

//登录按钮
- (IBAction)loginClick {
    ZZCLoginController *login = [ZZCLoginController new];
    [self.navigationController pushViewController:login animated:YES];
}

@end
